des1=commandLine.exe
des2=EnvironVar.exe
des3=addressSpace.exe 
src1=commandLine.c
src2=EnvironVar.c
src3=addressSpace.c

$(des1):$(src1)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $(src1) to $(des1)"
$(des2):$(src2)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $(src2) to $(des2)"
$(des3):$(src3)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $(src3) to $(des3)"
.PHONY:clean1 clean2 clean3
clean1:
	@rm -rf $(des1)
	@echo "delete $(des1)"
clean2:
	@rm -rf $(des2)
	@echo "delete $(des2)"
clean3:
	@rm -rf $(des3)
	@echo "delete $(des3)"
